(() => {
    // 接口可以继承接口
    interface Shape {
        color: string

    }
    interface Square extends Shape {
        sideLight: number
    }

    // let square: Square
    let square = <Square>{}
    square.color = 'blue'
    square.sideLight = 10


    // 接口可以继承多个接口
    interface A {
        color: string
    }
    interface B {
        penWidth: number
    }

    interface C extends A, B {
        sideLight: number
    }

    // let c = <C>{}
    let c: C
    c.color = '红'
    c.penWidth = 10
    c.sideLight = 5.0
    console.log(c);
})()